﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterIndex.Master" AutoEventWireup="true" CodeBehind="CadastroUsuario.aspx.cs" Inherits="CreditoAutorizado.CadastroUsuario" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
        <tr>
            <td style="width: 123px; height: 44px;">
                </td>
            <td align="center" 
                style="font-family: 'kRISten ITC'; font-weight: bold; height: 44px;">
                CADASTRO DE USUÁRIO<asp:ValidationSummary ID="VSCadastroLogin" runat="server" 
                    BackColor="#FBE3E4" BorderColor="#FBC2C4" BorderStyle="Solid" BorderWidth="2px" 
                    DisplayMode="List" Font-Size="8pt" ForeColor="#8A1F11" 
                    style="font-family: Arial, Helvetica, sans-serif" 
                    ValidationGroup="MensageError" />
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
            </td>
            <td style="width: 123px; height: 44px;">
                </td>
        </tr>
        <tr>
            <td style="width: 123px">
                &nbsp;</td>
            <td>
                <table class="style1">
                    <tr>
                        <td align="left">
<asp:Label ID="Label1" runat="server" Text="Nome:" Width="60px"></asp:Label>
                            <asp:TextBox ID="txtNome" runat="server" Width="360px"></asp:TextBox>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNome" 
                                ErrorMessage="Nome é obrigatorio" ValidationGroup="MensageError">*</asp:RequiredFieldValidator>
&nbsp;<asp:Label ID="Label2" runat="server" Text="CPF:"></asp:Label>
&nbsp;
                            <asp:TextBox ID="txtCpf" runat="server" Width="119px" 
                                Wrap="False"></asp:TextBox>
                            <asp:MaskedEditExtender ID="txtCpf_MaskedEditExtender" runat="server" 
                                CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                                Mask="999.999.999-99" MaskType="Number" TargetControlID="txtCpf">
                            </asp:MaskedEditExtender>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtCpf" ErrorMessage="CPF Invalido" 
                                ValidationGroup="MensageError">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
<asp:Label ID="Label3" runat="server" Text="Rua:" Width="60px"></asp:Label>
                            <asp:TextBox ID="txtRua" runat="server" Width="199px"></asp:TextBox>
&nbsp;
                            <asp:Label ID="Label4" runat="server" Text="Número:"></asp:Label>
&nbsp;
                            <asp:TextBox ID="txtNumero" runat="server" Width="55px"></asp:TextBox>
&nbsp;
                            <asp:Label ID="Label5" runat="server" Text="Bairro:"></asp:Label>
&nbsp;
                            <asp:TextBox ID="txtBairro" runat="server" Width="147px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            <asp:Label ID="Label6" runat="server" Text="Cidade:" Width="60px"></asp:Label>
                            <asp:TextBox ID="txtCidade" runat="server" Width="282px"></asp:TextBox>
&nbsp;
                            <asp:Label ID="Label7" runat="server" Text="Estado:"></asp:Label>
&nbsp;<asp:DropDownList ID="ddlEstados" runat="server" Height="22px" Width="205px">
                                <asp:ListItem>Acre</asp:ListItem>
                                <asp:ListItem>Alagoas </asp:ListItem>
                                <asp:ListItem>Amapá</asp:ListItem>
                                <asp:ListItem>Amazonas </asp:ListItem>
                                <asp:ListItem>Bahia </asp:ListItem>
                                <asp:ListItem>Ceará </asp:ListItem>
                                <asp:ListItem>Distrito Federal</asp:ListItem>
                                <asp:ListItem>Espírito Santo</asp:ListItem>
                                <asp:ListItem>Goiás </asp:ListItem>
                                <asp:ListItem>Maranhão</asp:ListItem>
                                <asp:ListItem>Mato Grosso</asp:ListItem>
                                <asp:ListItem>Mato Grosso do Sul</asp:ListItem>
                                <asp:ListItem>Minas Gerais</asp:ListItem>
                                <asp:ListItem>Pará </asp:ListItem>
                                <asp:ListItem>Paraíba </asp:ListItem>
                                <asp:ListItem>Pernambuco</asp:ListItem>
                                <asp:ListItem>Paraná </asp:ListItem>
                                <asp:ListItem>Piauí </asp:ListItem>
                                <asp:ListItem>Rio de Janeiro</asp:ListItem>
                                <asp:ListItem>Rio Grande do Norte</asp:ListItem>
                                <asp:ListItem>Rio Grande do Sul </asp:ListItem>
                                <asp:ListItem>Rondônia </asp:ListItem>
                                <asp:ListItem>Roraima </asp:ListItem>
                                <asp:ListItem>Santa Catarina</asp:ListItem>
                                <asp:ListItem>São Paulo</asp:ListItem>
                                <asp:ListItem>Sergipe </asp:ListItem>
                                <asp:ListItem>Tocantins </asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            <asp:Label ID="Label8" runat="server" Text="Telefone:" Width="60px"></asp:Label>
                            <asp:TextBox ID="txtTelefone" runat="server" Width="114px"></asp:TextBox>
                            <asp:MaskedEditExtender ID="txtTelefone_MaskedEditExtender" runat="server" 
                                CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                                Mask="(99) 9999-9999" MaskType="Number" TargetControlID="txtTelefone">
                            </asp:MaskedEditExtender>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtTelefone" 
                                ErrorMessage="Telefone é obrigatório" ValidationGroup="MensageError">*</asp:RequiredFieldValidator>
&nbsp; <asp:Label ID="Label9" runat="server" Text="Celular:"></asp:Label>
&nbsp;<asp:TextBox ID="txtCelular" runat="server" Width="114px"></asp:TextBox>
                            <asp:MaskedEditExtender ID="txtCelular_MaskedEditExtender" runat="server" 
                                CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                                Mask="(99) 9999-9999" MaskType="Number" TargetControlID="txtCelular">
                            </asp:MaskedEditExtender>
&nbsp; <asp:Label ID="Label10" runat="server" Text="Email:"></asp:Label>
&nbsp;<asp:TextBox ID="txtEmail" runat="server" Width="179px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="txtEmail" ErrorMessage="E-mail Invalido" 
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                ValidationGroup="MensageError">*</asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            <asp:Label ID="Label11" runat="server" Text="Senha:" Width="60px"></asp:Label>
                            <asp:TextBox ID="txtSenha01" runat="server" TextMode="Password" Width="212px"></asp:TextBox>
&nbsp;&nbsp;
                            <asp:Label ID="Label12" runat="server" Text="Redigite a senha:"></asp:Label>
&nbsp;<asp:TextBox ID="txtSenha02" runat="server" TextMode="Password" Width="211px"></asp:TextBox>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                ControlToCompare="txtSenha01" ControlToValidate="txtSenha02" 
                                ErrorMessage="A senha não foi digitada corretamente" 
                                ValidationGroup="MensageError">*</asp:CompareValidator>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 123px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 123px">
                &nbsp;</td>
            <td align="center">
                <asp:Button ID="BtCadastrar" runat="server" BackColor="#0099FF" 
                    BorderColor="#0099FF" BorderStyle="Inset" Font-Bold="True" ForeColor="White" 
                    Text="Cadastrar" ValidationGroup="MensageError" 
                    onclick="BtCadastrar_Click" />
            </td>
            <td style="width: 123px">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
